﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using EDTS.Model.Weixin;
using EDTS.Data.Weixin;
namespace EDTS.Logic.Weixin
{
    public class WxMessageLogic
    {
        public static void CreateNew(WxMessageModel model)
        {
            WxMessageCommand.CreateNew(model);
        }

        public static WxMessageCollection Gets(WxMessageQuery sea)
        {
            return WxMessageCommand.Gets(sea);
        }
        public static WxMessageCollection GetWaiting(int top)
        {
            return WxMessageCommand.GetWaiting(top);
        }

        public static void SetResult(int id, WxMessageStatus status, string result, string errmsg = null)
        {
            WxMessageCommand.SetResult(id, status, result, errmsg);
        }
    }
}
